/**
 * 获取状态栏高度
 */
export const getStatusBarHeight = () => {
	return uni.getWindowInfo().statusBarHeight;
}

/**
 * 获取标题栏高度
 */
export const getTitleBarHeight = () => {
	const { height, top } = uni.getMenuButtonBoundingClientRect();
	return height + (top - getStatusBarHeight()) * 2 ; 
}